package string;

import java.util.Arrays;

public class Split1 {
    public static void main(String[] args) {
        String a = "123lee456very789cool";
        String[] b = a.split("[0-9]+");
        System.out.println(Arrays.toString(b));

        a = "123.456.78";
        b = a.split("\\.");
        System.out.println(Arrays.toString(b));

        a = ".123.456....78.......";
        b = a.split("\\.");
        System.out.println(Arrays.toString(b));
    }
}
